package com.xiyu.service.repository.office.space;

import com.xiyu.service.model.office.space.OfficeSpaceWorker;
import com.xiyu.service.model.office.space.OfficeSpaceWorkerTable;
import org.babyfish.jimmer.spring.repository.JRepository;

import java.util.Optional;
import java.util.List;

public interface OfficeSpaceWorkerRepository extends JRepository<OfficeSpaceWorker, Long> {
    OfficeSpaceWorkerTable officeSpaceWorkerTable = OfficeSpaceWorkerTable.$;

    Optional<OfficeSpaceWorker> findFirstBySpaceIdAndWorkerId(Long spaceId, Long workerId);

    List<OfficeSpaceWorker> findBySpaceId(Long spaceId);
}